<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/pages/common/taglib.jsp"%>
<c:forEach var="book" varStatus="bookindex" items="${books}">
	<tr>
		<c:if test="${bookindex.index==0}"><input id="itemsCount" type="hidden" value="${count}"></c:if>
		<td>${bookindex.index+1}</td>	
		<td>${book.senduser}</td>	
		<td>${book.title}</td>	
		<td class="tmui-tips" tip="${tz:formatDate(book.createTime,'yyyy-MM-dd HH:mm:ss')}">
			${tz:timeFormat(book.createTime)}
		</td>	
		<td>
			<tz:if test="${book.status==1}">
				<tz:then><a href="javascript:void(0)" opid="${book.id}" mark="status" val="0" onclick="tzAdmin.op(this);" class="green">是</a></tz:then>
				<tz:else><a href="javascript:void(0)" opid="${book.id}" mark="status" val="1" onclick="tzAdmin.op(this);" class="red">否</a></tz:else>
			</tz:if>
		</td>	
		<td><a href="javascript:void(0);" data-opid="${book.id}" onclick="tzAdmin.remove(this)"><i class="fa fa-trash del" style="font-size:16px;color:#939da8"></i></a></td>
	</tr>
</c:forEach>
<script type="text/javascript">
	$(function(){
		$(".tmui-tips").tmTip();
	});
</script>